package com.example.braden.answergame.modules.main.domain;

import com.example.braden.answergame.base.BaseResult;
import com.google.gson.annotations.SerializedName;
import java.util.List;

/**
 * Created by braden on 2018/3/14.
 */

public class MyPropEntity extends BaseResult {
    @SerializedName("data") public Data data;

    public class Data {
        @SerializedName("user") public User user;
        @SerializedName("props") public List<Prop> props;

        public User getUser() {
            return user;
        }

        public void setUser(User user) {
            this.user = user;
        }

        public List<Prop> getProps() {
            return props;
        }

        public void setProps(List<Prop> props) {
            this.props = props;
        }

        @Override public String toString() {
            return "Data{" + "user=" + user.toString() + ", props=" + props + '}';
        }

        public class User {
            @SerializedName("nick_name") public String nick_name;
            @SerializedName("face_img") public String face_img;
            @SerializedName("balance") public int balance;

            public String getNick_name() {
                return nick_name;
            }

            public void setNick_name(String nick_name) {
                this.nick_name = nick_name;
            }

            public String getFace_img() {
                return face_img;
            }

            public void setFace_img(String face_img) {
                this.face_img = face_img;
            }

            public int getBalance() {
                return balance;
            }

            public void setBalance(int balance) {
                this.balance = balance;
            }
        }

        public class Prop {
            @SerializedName("key") public String key;
            //@SerializedName("prop_id") public int prop_id;
            @SerializedName("title") public String title;
            @SerializedName("icon") public String icon;
            @SerializedName("desc") public String desc;
            @SerializedName("level") public int level;
            @SerializedName("count") public int count;
            @SerializedName("price") public int price;

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            //public int getProp_id() {
            //    return prop_id;
            //}
            //
            //public void setProp_id(int prop_id) {
            //    this.prop_id = prop_id;
            //}

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            @Override public String toString() {
                return "Prop{" + "key='" + key + '\'' + ", prop_id=" + ", title='" + title
                        + '\'' + ", icon='" + icon + '\'' + ", desc='" + desc + '\'' + ", level="
                        + level + ", count=" + count + ", price=" + price + '}';
            }
        }
    }

    @Override public String toString() {
        return "MyPropEntity{" + "code=" + code + ", msg='" + msg + '\'' + ", data=" + data.toString() + '}';
    }
}
